LON Super Tiangong Index## LON Super Heavenly Palace Indicator
### Description
The LON Super Heavenly Palace indicator is a sophisticated multi-line oscillator that identifies potential trading opportunities through a combination of momentum and trend analysis. It features four distinct lines that work together to provide comprehensive market insights.
### Key Features
- **Four Main Lines**: Short, Mid, Mid-Long, and Long lines with distinct colors
- **Adaptive Signals**: Uses both absolute and relative value analysis for better market adaptation
- **Visual Alerts**: Background highlighting and shape markers for clear signal identification
- **Multiple Signal Types**: Comprehensive signal system for various market conditions
### Trading Signals
#### Bullish Signals
- **Dragon's Treasure**: Blue background when all lines are in relative bottom territory
- **Golden Signal**: Cyan circles when all lines are below 20
- **Bounce Signal**: Pink triangles when long-term momentum turns positive
- **Perfect Opportunity**: Purple triangles for optimal entry conditions
#### Bearish Signals
- **Heaven's Treasure**: Yellow background when mid and long lines reach relative top territory
- **Top Signal**: Yellow circles when mid line exceeds 80
#### Confirmation Signals
- **Bottom Signal**: Magenta circles for oversold conditions
- **Strong Bottom**: Large purple triangles for major reversal opportunities
### How to Use
#### Entry Strategy
1. **Wait for Dragon's Treasure** (blue background) - indicates oversold conditions
2. **Look for Golden Signal** (cyan circles) - confirms bottom formation
3. **Confirm with Bounce Signal** (pink triangles) - momentum turning positive
4. **Enter on Perfect Opportunity** (purple triangles) - optimal timing
#### Exit Strategy
1. **Monitor Heaven's Treasure** (yellow background) - overbought conditions
2. **Watch for Top Signal** (yellow circles) - exit signal
3. **Use reference lines** (20, 80) for additional confirmation
#### Risk Management
- Use the 15 and 80 reference lines as support/resistance
- Combine multiple signals for higher probability trades
- Avoid trading against strong trend signals
- Use the -90 reference line for extreme oversold conditions
### Best Practices
- **Timeframe**: Works best on 1H, 4H, and Daily charts
- **Markets**: Effective on stocks, forex, and crypto
- **Confirmation**: Always wait for multiple signals to align
- **Patience**: Don't force trades - wait for clear signal combinations
### Visual Reference
- **Blue background** = Potential buying opportunity
- **Yellow background** = Potential selling opportunity
- **Colored circles** = Confirmation signals
- **Triangles** = Entry/exit points
- **Dotted lines** = Key reference levels
This indicator excels at identifying oversold/overbought conditions and potential reversal points, making it ideal for swing trading and medium-term position management.
Cerca negli script per "swing trading"
Hull For LoopHull For Loop is a sophisticated trend-following indicator that combines the smoothness of Hull Moving Averages with advanced trend detection algorithms and robust confirmation mechanisms.
## How It Works
At its foundation, Hull For Loop employs a custom-calculated Hull Moving Average using weighted moving average for-loops to achieve optimal smoothness and responsiveness. The system operates through three distinct layers: Hull MA calculation with adjustable smoothing multipliers, advanced trend detection using ATR-based slope thresholds, and multi-bar trend confirmation to filter false breakouts.
The logic flow is elegantly simple yet powerful:
- Hull Calculation combines half-period and full-period weighted moving averages, then applies square-root smoothing for enhanced responsiveness
- Trend Detection analyzes Hull slope against dynamic ATR-based thresholds, classifying market direction as bullish, bearish, or neutral
- Confirmation System requires sustained directional movement across multiple bars before triggering signals, dramatically reducing whipsaws
When Hull slope exceeds the positive threshold, bullish conditions emerge. When it falls below the negative threshold, bearish momentum takes control. The multi-bar confirmation ensures only sustained moves generate actionable signals, making this system ideal for trend-following strategies across volatile markets.
The advanced slope analysis mechanism adapts to market volatility through ATR integration, ensuring sensitivity remains optimal during both high-volatility breakouts and low-volatility consolidations, delivering consistent performance across varying market conditions.
## Features
- Custom Hull Implementation : For-loop calculations for precise weighted moving average control and enhanced smoothness
- Dynamic Trend Detection : ATR-based slope analysis automatically adjusts sensitivity to market volatility conditions
- Multi-Bar Confirmation : Configurable confirmation periods (1-5 bars) eliminate false signals and reduce trading noise
- Advanced Visual System : Dynamic color coding, optional arrows, and statistics table for comprehensive market visualization
- Optimized for Bitcoin : Extensively backtested parameters delivering 128.58% returns with 55% drawdown reduction versus buy-and-hold
- Flexible Configuration : Hull length (1-200), smoothing multiplier (0.1-3.0), sensitivity (1-10), and confirmation settings
- Professional Alerts : Comprehensive alert system for trend changes and entry signals with strength percentages
- Real-time Analytics : Optional statistics table displaying trend direction, strength, Hull value, and current price
## Signal Generation
Hull For Loop generates multiple signal types for comprehensive trend analysis and precise entry/exit timing:
Primary Signals : Confirmed trend changes from bullish to bearish or vice versa - highest probability directional moves
Entry Signals : Initial trend confirmation after multi-bar validation - optimal position entry points
Strength Indicators : Real-time trend strength percentages based on directional momentum over lookback periods
Visual Confirmations : Color-coded Hull line providing instant visual trend status
The confirmation system adds crucial reliability - signals must persist through the specified confirmation period before activation, ensuring only sustained moves trigger trading decisions rather than temporary price fluctuations.
## Visual Implementation
The indicator employs sophisticated visual elements for immediate trend comprehension and professional chart presentation:
- Dynamic Hull Line : Color-changing line (green/red/gray) with configurable width reflecting current trend status
- Optional Directional Arrows : Triangle markers below/above bars marking confirmed trend changes and entry points (disabled by default)
- Statistics Panel : Optional real-time table showing trend direction, strength percentage, Hull value, and current price
- Professional Color Scheme : Customizable bullish (green), bearish (red), and neutral (gray) color system
## Alerts
Hull For Loop includes comprehensive alert conditions for automated trading integration:
- Hull Trend Change - Confirmed trend direction shift with strength percentage
- Hull BUY Signal - Bullish trend confirmation with price and strength data
- Hull SELL Signal - Bearish trend confirmation with price and strength data
- Alert Frequency - Once per bar to prevent spam while maintaining accuracy
All alerts include contextual information: trend direction, current price, and trend strength percentage for informed decision-making.
## Use Cases
Trend Following : Optimized for sustained directional moves with superior drawdown protection compared to buy-and-hold strategies
Swing Trading : Multi-bar confirmation eliminates false breakouts while capturing significant trend changes
Position Trading : Smooth Hull calculation provides stable signals for longer-term directional positioning
Risk Management : Advanced confirmation system dramatically reduces whipsaw trades and false signals
Crypto Trading : Specifically optimized for Bitcoin with parameters delivering exceptional historical performance
The system demonstrates exceptional performance across volatile assets.
The Sequences of FibonacciThe Sequences of Fibonacci - Advanced Multi-Timeframe Confluence Analysis System
THEORETICAL FOUNDATION & MATHEMATICAL INNOVATION
The Sequences of Fibonacci represents a revolutionary approach to market analysis that synthesizes classical Fibonacci mathematics with modern adaptive signal processing. This indicator transcends traditional Fibonacci retracement tools by implementing a sophisticated multi-dimensional confluence detection system that reveals hidden market structure through mathematical precision.
Core Mathematical Framework
Dynamic Fibonacci Grid System:
Unlike static Fibonacci tools, this system calculates highest highs and lowest lows across true Fibonacci sequence periods (8, 13, 21, 34, 55 bars) creating a dynamic grid of mathematical support and resistance levels that adapt to market structure in real-time.
Multi-Dimensional Confluence Detection:
The engine employs advanced mathematical clustering algorithms to identify areas where multiple derived Fibonacci retracement levels (0.382, 0.500, 0.618) from different timeframe perspectives converge. These "Confluence Zones" are mathematically classified by strength:
- CRITICAL Zones: 8+ converging Fibonacci levels
- HIGH Zones: 6-7 converging levels
- MEDIUM Zones: 4-5 converging levels
- LOW Zones: 3+ converging levels
Adaptive Signal Processing Architecture:
The system implements adaptive Stochastic RSI calculations with dynamic overbought/oversold levels that adjust to recent market volatility rather than using fixed thresholds. This prevents false signals during changing market conditions.
COMPREHENSIVE FEATURE ARCHITECTURE
Quantum Field Visualization System
Dynamic Price Field Mathematics:
The Quantum Field creates adaptive price channels based on EMA center points and ATR-based amplitude calculations, influenced by the Unified Field metric. This visualization system helps traders understand:
- Expected price volatility ranges
- Potential overextension zones
- Mathematical pressure points in market structure
- Dynamic support/resistance boundaries
Field Amplitude Calculation:
Field Amplitude = ATR × (1 + |Unified Field| / 10)
The system generates three quantum levels:
- Q⁰ Level: 0.618 × Field Amplitude (Primary channel)
- Q¹ Level: 1.0 × Field Amplitude (Secondary boundary)
- Q² Level: 1.618 × Field Amplitude (Extreme extension)
Advanced Market Analysis Dashboard
Unified Field Analysis:
A composite metric combining:
- Price momentum (40% weighting)
- Volume momentum (30% weighting)
- Trend strength (30% weighting)
Market Resonance Calculation:
Measures price-volume correlation over 14 periods to identify harmony between price action and volume participation.
Signal Quality Assessment:
Synthesizes Unified Field, Market Resonance, and RSI positioning to provide real-time evaluation of setup potential.
Tiered Signal Generation Logic
Tier 1 Signals (Highest Conviction):
Require ALL conditions:
- Adaptive StochRSI setup (exiting dynamic OB/OS levels)
- Classic StochRSI divergence confirmation
- Strong reversal bar pattern (adaptive ATR-based sizing)
- Level rejection from Confluence Zone or Fibonacci level
- Supportive Unified Field context
Tier 2 Signals (Enhanced Opportunity Detection):
Generated when Tier 1 conditions aren't met but exceptional circumstances exist:
- Divergence candidate patterns (relaxed divergence requirements)
- Exceptionally strong reversal bars at critical levels
- Enhanced level rejection criteria
- Maintained context filtering
Intelligent Visualization Features
Fractal Matrix Grid:
Multi-layer visualization system displaying:
- Shadow Layer: Foundational support (width 5)
- Glow Layer: Core identification (width 3, white)
- Quantum Layer: Mathematical overlay (width 1, dotted)
Smart Labeling System:
Prevents overlap using ATR-based minimum spacing while providing:
- Fibonacci period identification
- Topological complexity classification (0, I, II, III)
- Exact price levels
- Strength indicators (○ ◐ ● ⚡)
Wick Pressure Analysis:
Dynamic visualization showing momentum direction through:
- Multi-beam projection lines
- Particle density effects
- Progressive transparency for natural flow
- Strength-based sizing adaptation
PRACTICAL TRADING IMPLEMENTATION
Signal Interpretation Framework
Entry Protocol:
1. Confluence Zone Approach: Monitor price approaching High/Critical confluence zones
2. Adaptive Setup Confirmation: Wait for StochRSI to exit adaptive OB/OS levels
3. Divergence Verification: Confirm classic or candidate divergence patterns
4. Reversal Bar Assessment: Validate strong rejection using adaptive ATR criteria
5. Context Evaluation: Ensure Unified Field provides supportive environment
Risk Management Integration:
- Stop Placement: Beyond rejected confluence zone or Fibonacci level
- Position Sizing: Based on signal tier and confluence strength
- Profit Targets: Next significant confluence zone or quantum field boundary
Adaptive Parameter System
Dynamic StochRSI Levels:
Unlike fixed 80/20 levels, the system calculates adaptive OB/OS based on recent StochRSI range:
- Adaptive OB: Recent minimum + (range × OB percentile)
- Adaptive OS: Recent minimum + (range × OS percentile)
- Lookback Period: Configurable 20-100 bars for range calculation
Intelligent ATR Adaptation:
Bar size requirements adjust to market volatility:
- High Volatility: Reduced multiplier (bars naturally larger)
- Low Volatility: Increased multiplier (ensuring significance)
- Base Multiplier: 0.6× ATR with adaptive scaling
Optimization Guidelines
Timeframe-Specific Settings:
Scalping (1-5 minutes):
- Fibonacci Rejection Sensitivity: 0.3-0.8
- Confluence Threshold: 2-3 levels
- StochRSI Lookback: 20-30 bars
Day Trading (15min-1H):
- Fibonacci Rejection Sensitivity: 0.5-1.2
- Confluence Threshold: 3-4 levels
- StochRSI Lookback: 40-60 bars
Swing Trading (4H-1D):
- Fibonacci Rejection Sensitivity: 1.0-2.0
- Confluence Threshold: 4-5 levels
- StochRSI Lookback: 60-80 bars
Asset-Specific Optimization:
Cryptocurrency:
- Higher rejection sensitivity (1.0-2.5) for volatile conditions
- Enable Tier 2 signals for increased opportunity detection
- Shorter adaptive lookbacks for rapid market changes
Forex Major Pairs:
- Moderate sensitivity (0.8-1.5) for stable trending
- Focus on Higher/Critical confluence zones
- Longer lookbacks for institutional flow detection
Stock Indices:
- Conservative sensitivity (0.5-1.0) for institutional participation
- Standard confluence thresholds
- Balanced adaptive parameters
IMPORTANT USAGE CONSIDERATIONS
Realistic Performance Expectations
This indicator provides probabilistic advantages based on mathematical confluence analysis, not guaranteed outcomes. Signal quality varies with market conditions, and proper risk management remains essential regardless of signal tier.
Understanding Adaptive Features:
- Adaptive parameters react to historical data, not future market conditions
- Dynamic levels adjust to past volatility patterns
- Signal quality reflects mathematical alignment probability, not certainty
Market Context Awareness:
- Strong trending markets may produce fewer reversal signals
- Range-bound conditions typically generate more confluence opportunities
- News events and fundamental factors can override technical analysis
Educational Value
Mathematical Concepts Introduced:
- Multi-dimensional confluence analysis
- Adaptive signal processing techniques
- Dynamic parameter optimization
- Mathematical field theory applications in trading
- Advanced Fibonacci sequence applications
Skill Development Benefits:
- Understanding market structure through mathematical lens
- Recognition of multi-timeframe confluence principles
- Appreciation for adaptive vs. static analysis methods
- Integration of classical Fibonacci with modern signal processing
UNIQUE INNOVATIONS
First-Ever Implementations
1. True Fibonacci Sequence Periods: First indicator using authentic Fibonacci numbers (8,13,21,34,55) for timeframe analysis
2. Mathematical Confluence Clustering: Advanced algorithm identifying true Fibonacci level convergence
3. Adaptive StochRSI Boundaries: Dynamic OB/OS levels replacing fixed thresholds
4. Tiered Signal Architecture: Democratic signal weighting with quality classification
5. Quantum Field Price Visualization: Mathematical field representation of price dynamics
Visualization Breakthroughs
- Multi-Layer Fibonacci Grid: Three-layer rendering with intelligent spacing
- Dynamic Confluence Zones: Strength-based color coding and sizing
- Adaptive Parameter Display: Real-time visualization of dynamic calculations
- Mathematical Field Effects: Quantum-inspired price channel visualization
- Progressive Transparency Systems: Natural visual flow without chart clutter
COMPREHENSIVE DASHBOARD SYSTEM
Multi-Size Display Options
Small Dashboard: Core metrics for mobile/limited screen space
Normal Dashboard: Balanced information density for standard desktop use
Large Dashboard: Complete analysis suite including adaptive parameter values
Real-Time Metrics Tracking
Market Analysis Section:
- Unified Field strength with visual meter
- Market Resonance percentage
- Signal Quality assessment with emoji indicators
- Market Bias classification (Bullish/Bearish/Neutral)
Confluence Intelligence:
- Total active zones count
- High/Critical zone identification
- Nearest zone distance and strength
- Price-to-zone ATR measurement
Adaptive Parameters (Large Dashboard):
- Current StochRSI OB/OS levels
- Active ATR multiplier for bar sizing
- Volatility ratio for adaptive scaling
- Real-time StochRSI positioning
TECHNICAL SPECIFICATIONS
Pine Script Version: v5 (Latest)
Calculation Method: Real-time with confirmed bar processing
Maximum Objects: 500 boxes, 500 lines, 500 labels
Dashboard Positions: 4 corner options with size selection
Visual Themes: Quantum, Holographic, Crystalline, Plasma
Alert Integration: Complete alert system for all signal types
Performance Optimizations:
- Efficient confluence zone calculation using advanced clustering
- Smart label spacing prevents overlap
- Progressive transparency for visual clarity
- Memory-optimized array management
EDUCATIONAL FRAMEWORK
Learning Progression
Beginner Level:
- Understanding Fibonacci sequence applications
- Recognition of confluence zone concepts
- Basic signal interpretation
- Dashboard metric comprehension
Intermediate Level:
- Adaptive parameter optimization
- Multi-timeframe confluence analysis
- Signal quality assessment techniques
- Risk management integration
Advanced Level:
- Mathematical field theory applications
- Custom parameter optimization strategies
- Market regime adaptation techniques
- Professional trading system integration
DEVELOPMENT ACKNOWLEDGMENT
Special acknowledgment to @AlgoTrader90 - the foundational concepts of this system came from him and we developed it through a collaborative discussions about multi-timeframe Fibonacci analysis. While the original framework came from AlgoTrader90's innovative approach, this implementation represents a complete evolution of the logic with enhanced mathematical precision, adaptive parameters, and sophisticated signal filtering to deliver meaningful, actionable trading signals.
CONCLUSION
The Sequences of Fibonacci represents a quantum leap in technical analysis, successfully merging classical Fibonacci mathematics with cutting-edge adaptive signal processing. Through sophisticated confluence detection, intelligent parameter adaptation, and comprehensive market analysis, this system provides traders with unprecedented insight into market structure and potential reversal points.
The mathematical foundation ensures lasting relevance while the adaptive features maintain effectiveness across changing market conditions. From the dynamic Fibonacci grid to the quantum field visualization, every component reflects a commitment to mathematical precision, visual elegance, and practical utility.
Whether you're a beginner seeking to understand market confluence or an advanced trader requiring sophisticated analytical tools, this system provides the mathematical framework for informed decision-making based on time-tested Fibonacci principles enhanced with modern computational techniques.
Trade with mathematical precision. Trade with the power of confluence. Trade with The Sequences of Fibonacci.
"Mathematics is the language with which God has written the universe. In markets, Fibonacci sequences reveal the hidden harmonies that govern price movement, and those who understand these mathematical relationships hold the key to anticipating market behavior."
* Galileo Galilei (adapted for modern markets)
— Dskyz, Trade with insight. Trade with anticipation.
Medias Móviles - Swing Trading - by addryy58....sdasdsjdhsaidhsauoixhashxuoashxuosahuoxhasohxsaxsaxsa
Relative Strength Index + Golden Cross + MACDThis script is a high-performance, cleanly visualized indicator designed for swing traders and intraday scalpers. It combines multiple classic and modern techniques to help identify momentum trends, crossover signals, and smart entry zones.
🔧 Key Features:
RSI (Relative Strength Index) with gradient bands (overbought/oversold zones)
Golden Cross & Death Cross (SMA 50/200) with green/red + markers
SMA 50 over 150 (bullish crossover) with a blue + marker
MACD Crossover Dots (green for bullish, red for bearish)
Supertrend Dots for direction confirmation (lime/fuchsia)
Smart Entry Dot when RSI > 50, MACD bullish, and SMA50 > SMA200 (teal triangle)
Background Highlight for strong trend momentum using custom ADX + RSI filter
🎯 Ideal For:
Scalping with momentum confirmation
Swing trading on multi-timeframe alignment
Combining traditional indicators with clean visuals
🧪 Suggested Use:
Use this indicator in combination with support/resistance or price action. Filter out low-probability trades by focusing on:
Smart Entry signals during momentum backgrounds
Cross-check with Supertrend direction and RSI slope
Adaptive RSI (ARSI)# Adaptive RSI (ARSI) - Dynamic Momentum Oscillator
Adaptive RSI is an advanced momentum oscillator that dynamically adjusts its calculation period based on real-time market volatility and cycle analysis. Unlike traditional RSI that uses fixed periods, ARSI continuously adapts to market conditions, providing more accurate overbought/oversold signals and reducing false signals during varying market phases.
## How It Works
At its core, ARSI calculates an adaptive period ranging from 8 to 28 bars using two key components: volatility measurement through Average True Range (ATR) and cycle detection via price momentum analysis. The logic is straightforward:
- **High volatility periods** trigger shorter calculation periods for enhanced responsiveness to rapid price movements
- **Low volatility periods** extend the calculation window for smoother, more reliable signals
- **Market factor** combines volatility and cycle analysis to determine optimal RSI period in real-time
When RSI crosses above 70, the market enters overbought territory. When it falls below 30, oversold conditions emerge. The indicator also features extreme levels at 80/20 for stronger reversal signals and midline crossovers at 50 for trend confirmation.
The adaptive mechanism ensures the oscillator remains sensitive during critical market movements while filtering out noise during consolidation phases, making it superior to static RSI implementations across different market conditions.
## Features
- **True Adaptive Calculation**: Dynamic period adjustment from 8-28 bars based on market volatility
- **Multiple Signal Types**: Overbought/oversold, extreme reversals, and midline crossovers
- **Configurable Parameters**: RSI length, adaptive sensitivity, ATR period, min/max bounds
- **Smart Smoothing**: Adjustable EMA smoothing from 1-21 periods to reduce noise
- **Visual Clarity**: Gradient colors, area fills, and signal dots for immediate trend recognition
- **Real-time Information**: Live data table showing current RSI, adaptive period, and market factor
- **Flexible Source Input**: Apply to any price source (close, hl2, ohlc4, etc.)
- **Professional Alerts**: Six built-in alert conditions for automated trading systems
## Signal Generation
ARSI generates multiple signal types for comprehensive market analysis:
**Primary Signals**: RSI crosses above 70 (overbought) or below 30 (oversold) - most reliable entry/exit points
**Extreme Signals**: RSI reaches 80+ (extreme overbought) or 20- (extreme oversold) - potential reversal zones
**Trend Signals**: RSI crosses above/below 50 midline - confirms directional momentum
**Reversal Signals**: Price action contradicts extreme RSI levels - early turning point detection
The adaptive period changes provide additional confirmation - signals accompanied by significant period shifts often carry higher probability of success.
## Visual Implementation
The indicator employs sophisticated visual elements for instant market comprehension:
- **Gradient RSI Line**: Color intensity reflects both value and momentum direction
- **Dynamic Zones**: Overbought/oversold areas with customizable fill colors
- **Signal Markers**: Triangular indicators mark key reversal and continuation points
- **Information Panel**: Real-time display of RSI value, adaptive period, market factor, and signal status
- **Background Coloring**: Subtle fills indicate current market state without chart clutter
## Parameter Configuration
**RSI Settings**:
- RSI Length: Base calculation period (default: 14)
- Adaptive Sensitivity: Response aggressiveness to volatility changes (default: 1.0)
- ATR Length: Volatility measurement period (default: 14)
- Min/Max Period: Adaptive calculation boundaries (default: 8/28)
- Smoothing Length: Final noise reduction filter (default: 3)
**Level Settings**:
- Overbought/Oversold: Standard signal levels (default: 70/30)
- Extreme Levels: Enhanced reversal zones (default: 80/20)
- Midline Display: 50-level trend confirmation toggle
**Visual Settings**:
- Line Width: RSI line thickness (1-5)
- Area Fills: Zone highlighting toggle
- Gradient Colors: Dynamic color intensity
- Signal Dots: Entry/exit marker display
## Alerts
ARSI includes six comprehensive alert conditions:
- **ARSI Overbought** - RSI crosses above overbought level
- **ARSI Oversold** - RSI crosses below oversold level
- **ARSI Bullish Cross** - RSI crosses above 50 midline
- **ARSI Bearish Cross** - RSI crosses below 50 midline
- **ARSI Extreme Bull** - Potential bullish reversal from extreme oversold
- **ARSI Extreme Bear** - Potential bearish reversal from extreme overbought
## Use Cases
**Trend Following**: Adaptive periods naturally adjust during trend acceleration and consolidation phases
**Mean Reversion**: Enhanced overbought/oversold signals with volatility-based confirmation
**Breakout Trading**: Extreme level breaches often precede significant directional moves
**Risk Management**: Multiple signal types allow for layered entry/exit strategies
**Multi-Timeframe Analysis**: Works effectively across various timeframes and asset classes
## Trading Applications
**Swing Trading**: Excels during trend transitions with adaptive sensitivity to changing conditions
**Day Trading**: Enhanced responsiveness during volatile sessions while filtering consolidation noise
**Position Trading**: Longer smoothing periods provide stable signals for broader market analysis
**Scalping**: Minimal smoothing with high sensitivity captures short-term momentum shifts
The indicator performs well across stocks, forex, commodities, and cryptocurrencies, though parameter optimization may be required for specific market characteristics.
## Settings Summary
**Display Settings**:
- RSI Length: Moving average baseline period
- Adaptive Sensitivity: Volatility response factor
- ATR Length: Volatility measurement window
- Min/Max Period: Adaptive calculation boundaries
- Smoothing Length: Noise reduction filter
**Level Configuration**:
- Overbought/Oversold: Primary signal thresholds
- Extreme Levels: Secondary reversal zones
- Midline Display: Trend confirmation toggle
**Visual Options**:
- Line Width: RSI line appearance
- Area Fills: Zone highlighting
- Gradient Colors: Dynamic visual feedback
- Signal Dots: Entry/exit markers
## Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Trading involves substantial risk of loss and is not suitable for all investors. Past performance is not indicative of future results. Always conduct thorough testing and risk assessment before live implementation. The adaptive nature of this indicator requires understanding of its behavior across different market conditions for optimal results.
VDR-PROVDR-PRO - Volume Weighted Average Price Dynamic Range
Advanced multi-timeframe VWAP indicator with intelligent range levels for precise trading decisions.
🎯 Key Features:
3 Independent Systems with configurable Average Daily/Weekly/Monthly Range calculations
VWAP Dismount Detection across multiple timeframes (Daily, Weekly, Monthly, Quarterly, Yearly)
Smart Level Synchronization - range levels automatically align with VWAP dismount points
Progressive Color System - automatic color coding for easy level identification
Intelligent Price Formatting - automatically adjusts decimal places based on symbol tick size
Dynamic Reference Points - use current price, manual price, or any VWAP dismount as central reference
📊 Perfect For:
Swing Trading - identify key support/resistance levels
Day Trading - precise entry/exit points based on volume-weighted levels
Range Trading - understand price distribution around volume-weighted averages
Multi-timeframe Analysis - combine different range calculations for comprehensive market view
⚙️ Customizable Settings:
Configure range periods (5-200 bars)
Adjust division factors (2-20x)
Set number of levels per system (2-15)
Choose from 12 different VWAP dismount references
Toggle progressive colors or use manual color schemes
🎨 Visual Excellence:
Clean, professional interface
Ghost-style labels with transparent backgrounds
Comprehensive range statistics table
Forex-friendly pip calculations
Transform your trading with precision VWAP-based range analysis. VDR-PRO combines volume analysis with dynamic range calculation for superior market insights.
TradePlanner ProPlan smarter. Trade with precision.
TradePlanner Pro is a professional-grade overlay tool designed to streamline your trading decisions by visually organizing your trade plans directly on the chart. Built for traders who value preparation and clarity, this script enables precise entry planning, risk management, and target visualization—all tailored per symbol.
Core Purpose
TradePlanner Pro helps you map out potential trades using pre-defined symbol-based presets. It dynamically calculates position sizes based on your account size or fixed risk, then visualizes key trade levels (Entry, Take Profits, Stop Loss) with profit/loss metrics in both dollar and percentage terms. It's the perfect companion for traders who prepare their setups in advance and want their plans clearly represented on the chart.
Key Features
🔹 Per-Symbol Presets: Define entries, up to 3 take-profit levels, and stop-losses for each ticker.
🔹 Dynamic Risk Sizing: Choose between percentage-based risk or fixed dollar risk per trade.
🔹 Visual Trade Mapping: Automatically plots Entry, TP1–TP3, and SL lines on your chart.
🔹 Real-Time P&L Labels: Displays profit/loss amounts and percentages, with optional R/R ratios.
🔹 Custom Investment Display: Shows how much capital is allocated per trade.
🔹 Clean, Configurable UI: Adjust label positions, font sizes, opacity, and label visibility to match your style.
Whether you're swing trading or day trading, TradePlanner Pro helps you stay disciplined, organized, and confident in your execution.
How to Use TradePlanner Pro – Step-by-Step Guide
TradePlanner Pro is designed to be easy to set up while giving you full control over how your trades are visualized and calculated. Here’s how to get started:
1. Start with Default Settings
By default, the script assumes:
Account Size: $10,000
Max Money per Trade (%): 1.0%
Max Risk (USD): 0 (disabled; only percentage risk is used)
This means the script will size each trade to risk 1% of your account balance per trade unless you override it with a fixed USD risk amount.
2. Set Up Your Symbol Presets
The "Symbol Presets" input is a flexible text area where you define trade setups for each ticker.
Format (one per line):
SYMBOL:Entry,TP1 ,SL
Example:
AAPL:250,260,270,240
MSFT:100,110,90
TSLA:180,200,170
You can include 1 to 3 take-profit levels.
The script will only activate for the current chart’s symbol, matching what's listed.
3. Customize Risk Parameters
You can use:
Account % Risk – Based on account size and % risk.
Fixed USD Risk – When a dollar amount is entered (>0), it takes priority and calculates share size based on the risk per share.
There's also an option to round share quantities down to whole units, which is useful for stock or crypto trading platforms that only allow whole-number units.
4. Choose What to Display
Toggle on/off these elements as needed:
Show Entry/TP/SL Lines
Show P&L Labels – Profit/loss amounts at each target and SL.
Show Amount Invested – Includes total dollar value in the quantity label.
Show Percentages – Adds % gain/loss to each label.
Show Risk/Reward Ratios – Optionally displayed beside or below TP labels.
You can further adjust:
Font size and label opacity
Label position offset – In percent of price range, so they don’t overlap the actual levels.
5. Read the Visual Outputs
Once the preset matches the current chart symbol:
Lines will appear for Entry, TP1-TP3, and Stop Loss.
Labels will display your:
Trade quantity (and invested amount)
Dollar and % profit at each target
Total loss at stop loss
Optional R/R ratios
Everything updates dynamically and adjusts to your current chart scale and bar availabilit
5DMA Optional HMA Entry📈 5DMA Optional HMA Entry Signal – Precision-Based Momentum Trigger
Category: Trend-Following / Reversal Timing / Entry Optimization
🔍 Overview:
The 5DMA Optional HMA Entry indicator is a refined price-action entry tool built for traders who rely on clean trend alignment and precise timing. This script identifies breakout-style entry points when price gains upward momentum relative to short-term moving averages — specifically the 5-day Simple Moving Average (5DMA) and an optional Hull Moving Average (HMA).
Whether you're swing trading stocks, scalping ETFs like UVXY or VXX, or looking for pullback recovery entries, this tool helps time your long entries with clarity and flexibility.
⚙️ Core Logic:
Primary Condition (Always On):
🔹 Close must be above the 5DMA – ensuring upward short-term momentum is confirmed.
Optional Condition (Toggled by User):
🔹 Close above the HMA – adds slope-responsive trend filtering for smoother setups. Enable or disable via checkbox.
Bonus Entry Filter (Optional):
🔹 Green Candle Wick Breakout – optional pattern logic that detects bullish momentum when the high pierces above both MAs, with a green body.
Reset Mechanism:
🔁 Signal resets only after price closes back below all active MAs (5DMA and HMA if enabled), reducing noise and avoiding repeated signals during chop.
🧠 Why This Works:
This indicator captures the kind of setups that professional traders look for:
Momentum crossovers without chasing late.
Mean reversion snapbacks that align with fresh bullish moves.
Avoids premature entries by requiring clear structure above moving averages.
Optional HMA filter allows adaptability: turn it off during choppy markets or range conditions, and on during trending environments.
🔔 Features:
✅ Adjustable HMA Length
✅ Enable/Disable HMA Filter
✅ Optional Green Wick Breakout Detection
✅ Visual “Buy” label plotted below qualifying bars
✅ Real-time Alert Conditions for automated trading or manual alerts
🎯 Use Cases:
VIX-based ETFs (e.g., UVXY, VXX): Catch early breakouts aligned with volatility spikes.
Growth Stocks: Time pullback entries during bullish runs.
Futures/Indices: Combine with macro levels for intraday scalps or swing setups.
Overlay on Trend Filters: Combine with RSI, MACD, or VWAP for confirmation.
🛠️ Recommended Settings:
For smooth setups in volatile names, use:
HMA Length: 20
Keep green wick filter ON
For fast momentum trades, disable the HMA filter to act on 5DMA alone.
⭐ Final Thoughts:
This script is built to serve both systematic traders and discretionary scalpers who want actionable signals without noise or lag. The toggleable HMA feature lets you adjust sensitivity depending on market conditions — a key edge in adapting to volatility cycles.
Perfect for those who value clean, non-repainting entries rooted in logical structure.
Rolling Z-Score Trend [QuantAlgo]🟢 Overview
The Rolling Z-Score Trend measures how far the current price deviates from its rolling mean in terms of standard deviations. It transforms price data into standardized scores to identify overbought and oversold conditions while tracking momentum shifts.
The indicator displays a Z-Score line showing price deviation from statistical norms, with background momentum columns showing the rate of change in these deviations. This helps traders and investors identify mean reversion opportunities and momentum shifts across different asset classes and timeframes.
🟢 How It Works
The indicator uses the Z-Score formula: Z = (X - μ) / σ, where X is the current closing price, μ is the rolling mean, and σ is the rolling standard deviation over a user-defined lookback period. This creates a dynamic baseline that adapts to changing market conditions and standardizes price movements for interpretation across different assets and volatility conditions. The raw Z-Score undergoes 3-period EMA smoothing to reduce noise while maintaining responsiveness to market signals.
Beyond the basic Z-Score calculation, the indicator measures the rate of change in Z-Score values between successive bars, displayed as background momentum columns. This momentum component shows acceleration and deceleration of statistical deviations. All calculations are processed through confirmation filters, displaying signals only on confirmed bars to reduce premature signals based on incomplete price action.
🟢 How to Use
1. Z-Score Interpretation and Threshold Zones
Positive Values (Above Zero) : Price trading above statistical mean, suggesting bullish momentum or potential overbought conditions
Negative Values (Below Zero) : Price trading below statistical mean, suggesting bearish momentum or potential oversold conditions
Zero Line Crosses : Signal transitions between statistical regimes and potential trend changes
Upper Threshold Zone : Area above entry threshold (default 1.5) indicating potential overbought conditions
Lower Threshold Zone : Area below negative entry threshold (default -1.5) indicating potential oversold conditions
Extreme Values (±2.0 or higher) : Statistically significant deviations that may indicate reversal opportunities
2. Momentum Background Analysis and Info Table
Green Columns : Accelerating positive momentum in Z-Score values
Red Columns : Accelerating negative momentum in Z-Score values
Column Height : Magnitude of momentum change between bars
Momentum Divergence : When columns contradict primary Z-Score direction, often signals impending reversals
Info Table : Displays real-time numerical values for both Z-Score and momentum, including trend direction indicators and bar-to-bar change calculations for position management
3. Preconfigured Settings
Default : Balanced performance across multiple timeframes and asset classes for general trading and medium-term position management.
Scalping : Responsive setup for ultra-short-term trading on 1-15 minute charts with frequent signals and increased sensitivity to quick price movements.
Swing Trading : Optimized for multi-day positions with noise filtering, focusing on larger price swings. Most effective on 1-4 hour and daily timeframes.
Trend Following : Maximum smoothing that prioritizes established trends over short-term volatility. Generates fewer signals for daily and weekly charts.
Yelober - Intraday ETF Dashboard# How to Read the Yelober Intraday ETF Dashboard
The Intraday ETF Dashboard provides a powerful at-a-glance view of sector performance and trading opportunities. Here's how to interpret and use the information:
## Basic Dashboard Reading
### Color-Coding System
- **Green values**: Positive performance or bullish signals
- **Red values**: Negative performance or bearish signals
- **Symbol colors**: Green = buy signal, Red = sell signal, Gray = neutral
### Example 1: Identifying Strong Sectors
If you see XLF (Financials) with:
- Day % showing +2.65% (green background)
- Symbol in green color
- RSI of 58 (not overbought)
**Interpretation**: Financial sector is showing strength and momentum without being overextended. Consider long positions in top financial stocks like JPM or BAC.
### Example 2: Spotting Weakness
If you see XLK (Technology) with:
- Day % showing -1.20% (red background)
- Week % showing -3.50% (red background)
- Symbol in red color
- RSI of 35 (approaching oversold)
**Interpretation**: Technology sector is showing weakness across multiple timeframes. Consider avoiding tech stocks or taking short positions in names like MSFT or AAPL, but be cautious as the low RSI suggests a bounce may be coming.
## Advanced Interpretations
### Example 3: Sector Rotation Detection
If you observe:
- XLE (Energy) showing +2.10% while XLK (Technology) showing -1.50%
- Both sectors' Week % values showing the opposite trend
**Interpretation**: This suggests money is rotating out of technology into energy stocks. This rotation pattern is actionable - consider reducing tech exposure and increasing energy positions (look at XOM, CVX in the Top Stocks column).
### Example 4: RSI Divergences
If you see XLU (Utilities) with:
- Day % showing +0.50% (small positive)
- RSI showing 72 (overbought, red background)
**Interpretation**: Despite positive performance, the high RSI suggests the sector is overextended. This divergence between price and indicator suggests caution - the rally in utilities may be running out of steam.
### Example 5: Relative Strength in Weak Markets
If SPY shows -1.20% but XLP (Consumer Staples) shows +0.30%:
**Interpretation**: Consumer staples are showing defensive strength during market weakness. This is typical risk-off behavior. Consider defensive positions in stocks like PG, KO, or PEP for protection.
## Practical Application Scenarios
### Day Trading Setup
1. **Morning Market Assessment**:
- Check which sectors are green pre-market
- Focus on sectors with Day % > 1% and RSI between 40-70
- Identify 2-3 stocks from the Top Stocks column of the strongest sector
2. **Midday Reversal Hunting**:
- Look for sectors with symbol color changing from red to green
- Confirm with RSI moving away from extremes
- Trade stocks from that sector showing similar pattern changes
### Swing Trading Application
1. **Trend Following**:
- Identify sectors with positive Day % and Week %
- Look for RSI values in uptrend but not overbought (45-65)
- Enter positions in top stocks from these sectors, using daily charts for confirmation
2. **Contrarian Setups**:
- Find sectors with deeply negative Day % but RSI < 30
- Look for divergence (price making new lows but RSI rising)
- Consider counter-trend positions in the stronger stocks within these oversold sectors
## Reading Special Conditions
### Example 6: Risk-Off Environment
If you observe:
- XLP (Consumer Staples) and XLU (Utilities) both green
- XLK (Technology) and XLY (Consumer Disc) both red
- SPY slightly negative
**Interpretation**: Classic risk-off rotation. Investors are moving to safety. Consider defensive positioning and reducing exposure to growth sectors.
### Example 7: Market Breadth Analysis
Count the number of sectors in green vs. red:
- If 7+ sectors are green: Strong bullish breadth, consider aggressive long positioning
- If 7+ sectors are red: Weak market breadth, consider defensive positioning or shorts
- If evenly split: Market is indecisive, focus on specific sector strength instead of broad market exposure
Remember that this dashboard is most effective when combined with broader market analysis and appropriate risk management strategies.
VWAP Multi-Timeframe VWAP Multi-Timeframe - Complete Professional Indicator
🚀 WHAT IS IT?
The VWAP Multi-Timeframe is an advanced indicator that combines 5 different VWAP periods in a single tool, providing a complete view of market fair value levels across multiple time scales.
⭐ KEY FEATURES
📊 5 Configurable VWAPs:
🟡 Daily VWAP - Ideal for day trading and intraday operations
🟠 Weekly VWAP - Perfect for swing trading
🔵 Monthly VWAP - Excellent for medium-term analysis
🔴 Quarterly VWAP - Essential for quarterly strategies
🟢 Yearly VWAP - Fundamental for long-term investments
🎯 Multiple Price Sources:
Choose the source that best fits your strategy:
Close - Closing price (most common)
OHLC4 - Complete average (smoother)
HLC3 - Typical price (default)
HL2 - Period midpoint
Open/High/Low - Specific prices
💡 HOW TO USE
For Day Traders:
Use Daily VWAP as main fair value reference
Prices above = buying pressure / Prices below = selling pressure
For Swing Traders:
Combine Weekly and Monthly VWAP to identify trends
Look for confluences between different timeframes
For Investors:
Quarterly and Yearly VWAP show long-term value levels
Excellent for identifying entry points in investments
🔧 TECHNICAL FEATURES
✅ Pine Script v6 - Latest and optimized version
✅ Clean Interface - User-friendly design
Market Sessions Indicator by NomadTradesCustomisable Market session indicator
This indicator visually marks the high and low price levels for the Asia, London, and New York trading sessions directly on the chart, using distinct horizontal lines and color-coding for each session. Each session’s high and low are labelled for easy identification, allowing traders to quickly assess key support and resistance levels established during major global market hours. The indicator is designed for clear session demarcation, helping users identify price reactions at these significant levels and supporting multi-session analysis for intraday and swing trading strategies
Faster Heikin AshiFaster Heikin Ashi
The Faster Heikin Ashi improves traditional Heikin Ashi candles by introducing advanced weighting mechanisms and lag reduction techniques. While maintaining the price smoothing benefits of standard Heikin Ashi, this enhanced version delivers faster signals and responsiveness.
Key Features
Unified Responsiveness Control
Single parameter (0.1 - 1.0) controls all responsiveness aspects
Eliminates conflicting settings found in other enhanced HA indicators
Intuitive scaling from conservative (0.1) to highly responsive (1.0)
Advanced Weighted Calculations
Smart Close Weighting: Close prices receive 2-3x more influence for faster trend detection
Dynamic OHLC Processing: All price components are intelligently weighted based on responsiveness setting
Balanced High/Low Emphasis: Maintains price level accuracy while improving speed
Enhanced Open Calculation
Transition Speed: Open prices "catch up" to market movements faster
Lag Reduction Algorithm: Eliminates the typical delay in Heikin Ashi open calculations
Smooth Integration: Maintains visual continuity while improving responsiveness
Four-Color Scheme
- 🟢 **Lime**: Strong bullish momentum
- 🔴 **Red**: Strong bearish momentum
- 🟢 **Green**: Moderate bullish
- 🔴 **Maroon**: Moderate bearish
How It Works
Traditional Heikin Ashi smooths price action but often lags behind real market movements. This enhanced version:
1. Weights price components based on their predictive value
2. Accelerates trend transitions through advanced open calculations
3. Scales all enhancements through a single responsiveness parameter
4. Maintains smoothing benefits while reducing lag
Responsiveness (0.1 - 1.0)
0.1 - 0.3: Conservative, maximum smoothing
0.4 - 0.6: Balanced, good for swing trading and trend following
0.7 - 1.0: Aggressive, fast signals, suitable for scalping and active trading
Multi-Volatility Adjusted Moving Average🎯 Core Concept
The Multi-Volatility Adjusted Moving Average (MVAMA) is an advanced technical indicator that creates an adaptive moving average with a built-in upward bias. Unlike traditional moving averages that simply follow price, this indicator adjusts upward based on market volatility, making it particularly useful for identifying dynamic resistance levels and trend strength.
🔧 How It Works
Key Principle: Upward Volatility Bias
Base Calculation: Starts with your chosen moving average (EMA, SMA, etc.)
Volatility Measurement: Calculates market volatility using one of 5 different methods
Upward Adjustment: Always adds volatility adjustment upward: Adaptive MA = Base MA + Volatility Adjustment
Dynamic Resistance: Creates a moving resistance level that adapts to market conditions
📊 5 Volatility Calculation Methods
1. Simple (High-Low Range)
Method: (High - Low) / Close × 100
Best For: Clean, straightforward volatility measurement
Use Case: General purpose, all market conditions
2. Parkinson (Range-Based Log Volatility)
Method: √(ln(High/Low)²) with safety bounds
Best For: Intraday volatility without using open/close gaps
Use Case: Choppy markets, day trading
3. ATR (Average True Range)
Method: Traditional ATR as percentage of price
Best For: Handling gaps and limit moves
Use Case: Swing trading, gap-prone markets
4. Standard Deviation (Statistical)
Method: Standard deviation of price returns
Best For: Academic/statistical approach
Use Case: Backtesting, quantitative analysis
5. Garman-Klass (OHLC Optimized)
Method: 0.5×ln(H/L)² - (2ln2-1)×ln(C/O)²
Best For: Most comprehensive volatility using all OHLC data
Use Case: Professional trading, maximum accuracy
🎛️ 12 Moving Average Types
Fast & Responsive:
HMA (Hull): Minimal lag, very responsive
DEMA/TEMA: Double/Triple exponential for speed
WMA: Weighted for recent price emphasis
Balanced:
EMA: Classic exponential (default)
ALMA: Arnaud Legoux for balanced response
LSMA: Linear regression trend following
Smooth & Stable:
SMA: Simple moving average
SMMA/RMA: Smoothed for noise reduction
TRIMA: Triangular for maximum smoothness
VWMA: Volume-weighted for market participation
💡 Practical Applications
Trading Uses:
Dynamic Resistance: Acts as adaptive resistance level
Trend Strength: Higher volatility = stronger adjustment = more significant level
Entry Timing: Price touching the adaptive MA can signal rejection points
Risk Management: Volatility bands show market uncertainty
Market Analysis:
Low Volatility: Adaptive MA stays close to base MA (consolidation)
High Volatility: Adaptive MA moves significantly above base MA (trending/breakout)
Trend Confirmation: Sustained distance between price and adaptive MA shows trend strength
⚙️ Key Features
Risk Management:
Volatility Capping: Prevents extreme adjustments (default 15% max)
Safety Bounds: All calculations protected against infinite/NaN values
Parameter Limits: Sensible ranges for all inputs
Visualization Options:
Base MA Display: Show underlying moving average
Volatility Bands: Visual representation of volatility adjustment
Custom Colors: Professional color schemes
Clean Interface: Organized input groups
Professional Features:
Multi-timeframe Support: Works on any timeframe
Alert Framework: Ready-to-enable price crossover alerts
🎯 Ideal For:
Traders Who Want:
Dynamic support/resistance levels
Volatility-aware trend analysis
Adaptive position sizing based on market conditions
Professional-grade technical analysis tools
Market Conditions:
Trending Markets: Volatility creates meaningful resistance levels
Volatile Markets: Adaptive adjustment handles changing conditions
All Timeframes: From scalping to position trading
🔍 Unique Advantages:
Always Upward Bias: Unlike oscillating indicators, always provides clear directional bias
Multi-Volatility Support: Choose the best volatility method for your market/style
Comprehensive MA Library: 12 different moving average types
Built-in Risk Management: Prevents extreme values that break other indicators
Professional Implementation: Publication-ready code with proper documentation
This script transforms traditional moving averages into intelligent, volatility-aware tools that adapt to market conditions while maintaining a consistent upward bias for clear directional guidance.
Identical Candles Detector [Premium]Identical Candles Detector
Advanced pattern recognition for consecutive similar candles
Description
This professional-grade indicator detects sequences of nearly identical candles, a pattern often signaling consolidation before significant breakouts. Unlike basic similarity detectors, it employs a weighted comparison system evaluating both candle bodies and wicks with adjustable tolerance.
Key Features:
Smart Comparison Algorithm: Weighs body vs. wick importance (adjustable 0-100%)
Directional Filtering: Optional same-direction requirement for bullish/bearish consistency
Statistical Backtesting: Tracks historical pattern success rates in real-time
Future Projection: Analyzes post-pattern performance with customizable lookahead
Visual Highlighting: Clear pattern marking with optional performance statistics
How It Works:
Calculates weighted candle size (body + wicks)
Compares consecutive candles within user-defined tolerance
Verifies directional consistency when enabled
Evaluates future price action for statistical significance
Usage Guidelines:
Best used on 15m-4h timeframes for swing trading
Combine with volume confirmation for higher probability signals
Tighten tolerance (3-5%) for more precise patterns
Use minimum pattern distance to avoid over-crowding
Technical Notes:
Safe historical access prevents lookback errors
Comprehensive input validation ensures stable operation
Memory-efficient implementation supports long backtests
Why This Stands Out:
While simple candle patterns are common, this tool adds:
Quantitative similarity measurement
Configurable component weighting
Built-in performance analytics
Professional-grade alert conditions
Note: This is not a standalone trading system. Always use with proper risk management and confirmation from other indicators.
Magnificent 7 OscillatorThe Magnificent 7 Oscillator is a sophisticated momentum-based technical indicator designed to analyze the collective performance of the seven largest technology companies in the U.S. stock market (Apple, Microsoft, Alphabet, Amazon, NVIDIA, Tesla, and Meta). This indicator incorporates established momentum factor research and provides three distinct analytical modes: absolute momentum tracking, equal-weighted market comparison, and relative performance analysis. The tool integrates five different oscillator methodologies and includes advanced breadth analysis capabilities.
Theoretical Foundation
Momentum Factor Research
The indicator's foundation rests on seminal momentum research in financial markets. Jegadeesh and Titman (1993) demonstrated that stocks with strong price performance over 3-12 month periods tend to continue outperforming in subsequent periods¹. This momentum effect was later incorporated into formal factor models by Carhart (1997), who extended the Fama-French three-factor model to include a momentum factor (UMD - Up Minus Down)².
The momentum calculation methodology follows the academic standard:
Momentum(t) = / P(t-n) × 100
Where P(t) is the current price and n is the lookback period.
The focus on the "Magnificent 7" stocks reflects the increasing market concentration observed in recent years. Fama and French (2015) noted that a small number of large-cap stocks can drive significant market movements due to their substantial index weights³. The combined market capitalization of these seven companies often exceeds 25% of the total S&P 500, making their collective momentum a critical market indicator.
Indicator Architecture
Core Components
1. Data Collection and Processing
The indicator employs robust data collection with error handling for missing or invalid security data. Each stock's momentum is calculated independently using the specified lookback period (default: 14 periods).
2. Composite Oscillator Calculation
Following Fama-French factor construction methodology, the indicator offers two weighting schemes:
- Equal Weight: Each active stock receives identical weighting (1/n)
- Market Cap Weight: Reserved for future enhancement
3. Oscillator Transformation Functions
The indicator provides five distinct oscillator types, each with established technical analysis foundations:
a) Momentum Oscillator (Default)
- Pure rate-of-change calculation
- Centered around zero
- Direct implementation of Jegadeesh & Titman methodology
b) RSI (Relative Strength Index)
- Wilder's (1978) relative strength methodology
- Transformed to center around zero for consistency
- Scale: -50 to +50
c) Stochastic Oscillator
- George Lane's %K methodology
- Measures current position within recent range
- Transformed to center around zero
d) Williams %R
- Larry Williams' range-based oscillator
- Inverse stochastic calculation
- Adjusted for zero-centered display
e) CCI (Commodity Channel Index)
- Donald Lambert's mean reversion indicator
- Measures deviation from moving average
- Scaled for optimal visualization
Operational Modes
Mode 1: Magnificent 7 Analysis
Tracks the collective momentum of the seven constituent stocks. This mode is optimal for:
- Technology sector analysis
- Growth stock momentum assessment
- Large-cap performance tracking
Mode 2: S&P 500 Equal Weight Comparison
Analyzes momentum using an equal-weighted S&P 500 reference (typically RSP ETF). This mode provides:
- Broader market momentum context
- Size-neutral market analysis
- Comparison baseline for relative performance
Mode 3: Relative Performance Analysis
Calculates the momentum differential between Magnificent 7 and S&P 500 Equal Weight. This mode enables:
- Sector rotation analysis
- Style factor assessment (Growth vs. Value)
- Relative strength identification
Formula: Relative Performance = MAG7_Momentum - SP500EW_Momentum
Signal Generation and Thresholds
Signal Classification
The indicator generates three signal states:
- Bullish: Oscillator > Upper Threshold (default: +2.0%)
- Bearish: Oscillator < Lower Threshold (default: -2.0%)
- Neutral: Oscillator between thresholds
Relative Performance Signals
In relative performance mode, specialized thresholds apply:
- Outperformance: Relative momentum > +1.0%
- Underperformance: Relative momentum < -1.0%
Alert System
Comprehensive alert conditions include:
- Threshold crossovers (bullish/bearish signals)
- Zero-line crosses (momentum direction changes)
- Relative performance shifts
- Breadth Analysis Component
The indicator incorporates market breadth analysis, calculating the percentage of constituent stocks with positive momentum. This feature provides insights into:
- Strong Breadth (>60%): Broad-based momentum
- Weak Breadth (<40%): Narrow momentum leadership
- Mixed Breadth (40-60%): Neutral momentum distribution
Visual Design and User Interface
Theme-Adaptive Display
The indicator automatically adjusts color schemes for dark and light chart themes, ensuring optimal visibility across different user preferences.
Professional Data Table
A comprehensive data table displays:
- Current oscillator value and percentage
- Active mode and oscillator type
- Signal status and strength
- Component breakdowns (in relative performance mode)
- Breadth percentage
- Active threshold levels
Custom Color Options
Users can override default colors with custom selections for:
- Neutral conditions (default: Material Blue)
- Bullish signals (default: Material Green)
- Bearish signals (default: Material Red)
Practical Applications
Portfolio Management
- Sector Allocation: Use relative performance mode to time technology sector exposure
- Risk Management: Monitor breadth deterioration as early warning signal
- Entry/Exit Timing: Utilize threshold crossovers for position sizing decisions
Market Analysis
- Trend Identification: Zero-line crosses indicate momentum regime changes
- Divergence Analysis: Compare MAG7 performance against broader market
- Volatility Assessment: Oscillator range and frequency provide volatility insights
Strategy Development
- Factor Timing: Implement growth factor timing strategies
- Momentum Strategies: Develop systematic momentum-based approaches
- Risk Parity: Use breadth metrics for risk-adjusted portfolio construction
Configuration Guidelines
Parameter Selection
- Momentum Period (5-100): Shorter periods (5-20) for tactical analysis, longer periods (50-100) for strategic assessment
- Smoothing Period (1-50): Higher values reduce noise but increase lag
- Thresholds: Adjust based on historical volatility and strategy requirements
Timeframe Considerations
- Daily Charts: Optimal for swing trading and medium-term analysis
- Weekly Charts: Suitable for long-term trend analysis
- Intraday Charts: Useful for short-term tactical decisions
Limitations and Considerations
Market Concentration Risk
The indicator's focus on seven stocks creates concentration risk. During periods of significant rotation away from large-cap technology stocks, the indicator may not represent broader market conditions.
Momentum Persistence
While momentum effects are well-documented, they are not permanent. Jegadeesh and Titman (1993) noted momentum reversal effects over longer time horizons (2-5 years).
Correlation Dynamics
During market stress, correlations among the constituent stocks may increase, reducing the diversification benefits and potentially amplifying signal intensity.
Performance Metrics and Backtesting
The indicator includes hidden plots for comprehensive backtesting:
- Individual stock momentum values
- Composite breadth percentage
- S&P 500 Equal Weight momentum
- Relative performance calculations
These metrics enable quantitative strategy development and historical performance analysis.
References
¹Jegadeesh, N., & Titman, S. (1993). Returns to buying winners and selling losers: Implications for stock market efficiency. Journal of Finance, 48(1), 65-91.
Carhart, M. M. (1997). On persistence in mutual fund performance. Journal of Finance, 52(1), 57-82.
Fama, E. F., & French, K. R. (2015). A five-factor asset pricing model. Journal of Financial Economics, 116(1), 1-22.
Wilder, J. W. (1978). New concepts in technical trading systems. Trend Research.
BackToBasic XEMAบทความอธิบายสคริปต์ “BackToBasic XEMA”
ภาษาไทย
แนวคิดโดยย่อ
BackToBasic XEMA เกิดจากแนวคิด “กลับสู่พื้นฐานแต่เพิ่มประโยชน์” โดยใช้สัญญาณ EMA Crossover เป็นแกนหลัก แล้วต่อยอดด้วยการแสดงกำไร/ขาดทุนจริง (PnL) และเส้น Trailing Stop แนวนอน เพื่อช่วยวัดประสิทธิภาพและป้องกันการคืนกำไร
กลไกการทำงาน
Dual EMA – คำนวณ EMA สองเส้น (Fast และ Slow)
Crossover Signal – ออกสัญญาณ Buy เมื่อ Fast ตัดขึ้น Slow และ Sell เมื่อ Fast ตัดลง Slow
PnL Lines & Labels – เมื่อทิศทางกลับตัว ระบบจะคำนวณส่วนต่างราคา × จำนวน Contracts แล้ววาดเส้นเชื่อมจุดเข้า–ออก พร้อมป้ายกำไร/ขาดทุนสีเขียว / แดง
Horizontal Trailing Stop – เมื่อราคาวิ่งไปทางกำไรเกิน trailStartPips ระบบจะสร้างเส้น Trail ห่างจาก EMA อ้างอิงด้วย trailBufferPips และเลื่อนเฉพาะในทางที่ล็อกกำไร
การตั้งค่าใช้งาน (สรุปเป็นคำอธิบาย)
ปรับค่า Fast/Slow EMA ให้สัมพันธ์กับกรอบเวลาและความผันผวนของสินทรัพย์
กรอกจำนวน Contracts ตามขนาดโพซิชันจริงเพื่อให้ค่า PnL สมจริง
ค่า Trail เริ่มต้นเหมาะกับกราฟ 1 ชั่วโมงขึ้นไป หากเทรดสั้นอาจลด trailStartPips และ trailBufferPips
แนะนำใช้กับสินทรัพย์สภาพคล่องสูง (คู่เงินหลัก, XAUUSD, ดัชนี) และทดสอบบนบัญชีเดโมก่อนเสมอ
จุดเด่นเมื่อเทียบกับ EMA Crossover พื้นฐาน
เห็นผลกำไร/ขาดทุนของแต่ละการเทรดทันที ไม่ต้องคำนวณย้อนหลัง
มีเส้น Trailing Stop แนวนอนช่วยล็อกกำไรและจำกัดขาดทุน
เปิด–ปิดฟังก์ชัน PnL และ Trailing ได้จากหน้าตั้งค่า ไม่ยุ่งยาก
ข้อจำกัดและคำเตือน
ไม่เหมาะกับกราฟแบบ Heikin Ashi หรือ Renko เพราะอาจเกิด repaint
PnL คำนวณจากส่วนต่างราคาเท่านั้น ไม่รวมค่าคอมมิชชันหรือสลิปเพจ
ผลลัพธ์ในอดีตไม่รับประกันอนาคต ควรจัดการความเสี่ยงและทดลองก่อนใช้งานจริง
ลิขสิทธิ์
สคริปต์นี้พัฒนาใหม่ทั้งหมดโดย , © 2025
English
Concept
BackToBasic XEMA extends a classic EMA-crossover setup with real-time profit-and-loss tracking and a horizontal trailing-stop line, giving traders both clear entry/exit signals and built-in risk management.
How It Works
Dual EMAs – Calculates Fast and Slow EMAs.
Crossover Signals – Generates a Buy when the Fast EMA crosses above the Slow EMA, and a Sell when it crosses below.
PnL Lines & Labels – On every direction flip the script computes price difference × contracts, draws a line from entry to exit, and labels the result in green (profit) or red (loss).
Horizontal Trailing Stop – After price moves in profit by at least trailStartPips, a trail line is placed trailBufferPips away from the chosen EMA and moves only in the trade’s favour.
Practical Settings (plain-language guide)
Adjust Fast/Slow EMA lengths to suit your timeframe and the instrument’s volatility.
Enter your position size in Contracts so PnL lines reflect real cash values.
For shorter timeframes, lower trailStartPips and trailBufferPips; for swing trading, larger values work better.
Best used on 1-hour-and-above charts of liquid symbols (major FX pairs, gold, indices). Forward-test on demo first.
Advantages over a Basic EMA Cross
Instant visual feedback on each trade’s profit or loss.
Built-in horizontal trailing stop to lock in gains and limit downside.
Modular design – PnL and trailing features can be toggled on or off in the input panel.
Limitations & Disclaimer
Not repaint-safe on non-standard chart types such as Heikin Ashi or Renko.
PnL lines show raw price change only; commissions and slippage are not included.
Past performance does not guarantee future results – trade responsibly and test thoroughly.
License
Original Pine Script by , © 2025
Momentum Flip Pro - Advanced ZigZag Trading SystemMomentum Flip Pro - Advanced ZigZag Trading System
Complete User Guide
📊 What This Indicator Does
The Momentum Flip Pro is an advanced position-flipping trading system that automatically identifies trend reversals using ZigZag patterns combined with momentum analysis. It's designed for traders who want to always be in the market, flipping between long and short positions at optimal reversal points.
Key Features:
Automatically flips positions at each ZigZag reversal point
Dynamic stop loss placement at exact ZigZag levels
Real-time trading dashboard with performance metrics
Capital tracking and ROI calculation
Three momentum engines to choose from
🎯 How It Works
Entry Signal: When a ZigZag point appears (circle on chart), the indicator:
Exits current position (if any)
Immediately enters opposite position
Places stop loss at the exact ZigZag price
Exit Signal: Positions are closed when the next ZigZag appears, then immediately reversed
Position Management:
Long Entry: ZigZag bottom (momentum turns UP)
Short Entry: ZigZag peak (momentum turns DOWN)
Stop Loss: Always at the ZigZag entry price
Take Profit: Next ZigZag point (automatic position flip)
⚙️ Recommended Settings
For Day Trading (5m-15m timeframes):
Momentum Engine: Quantum
- RSI Length: 9-12
- Quantum Factor: 3.5-4.0
- RSI Smoothing: 3-5
- Threshold: 8-10
For Swing Trading (1H-4H timeframes):
Momentum Engine: MACD
- Fast Length: 12
- Slow Length: 26
- Signal Smoothing: 9
- MA Type: EMA
For Position Trading (Daily):
Momentum Engine: Moving Average
- Average Type: EMA or HMA
- Length: 20-50
📈 How to Use for Trading
Add to Chart:
Add indicator to your chart
Set your starting capital
Choose your preferred momentum engine
Understanding Signals:
Green circles: Strong bullish momentum reversal
Red circles: Strong bearish momentum reversal
Purple circles: Normal momentum reversal
Entry labels: Show exact entry points with tooltips
Trading Rules:
Enter LONG when you see an up arrow + green/purple circle
Enter SHORT when you see a down arrow + red/purple circle
Stop loss is automatically at the ZigZag level
Hold until next ZigZag appears (exit + reverse)
Risk Management:
Risk per trade = Entry Price - Stop Loss
Position size = (Capital * Risk %) / Risk per trade
Recommended risk: 1-2% per trade
💡 Best Practices
Market Conditions:
Works best in trending markets
Excellent for volatile pairs (crypto, forex majors)
Avoid during low volume/consolidation
Timeframe Selection:
Lower timeframes (5m-15m): More signals, higher noise
Higher timeframes (1H+): Fewer signals, higher reliability
Sweet spot: 15m-1H for most traders
Momentum Engine Selection:
Quantum: Best for volatile markets (crypto, indices)
MACD: Best for trending markets (forex, stocks)
Moving Average: Best for smooth trends (commodities)
📊 Dashboard Interpretation
The trading dashboard shows:
Current Capital: Your running balance
Position: Current trade direction
Entry/Stop: Your risk levels
Statistics: Win rate and performance
ROI: Overall return on investment
⚠️ Important Notes
Always Active: This system is always in a position (long or short)
No Neutral: You're either long or short, never flat
Automatic Reversal: Positions flip at each signal
Stop Loss: Fixed at entry ZigZag level (doesn't trail)
🎮 Quick Start Guide
Beginners: Start with default settings on 1H timeframe
Test First: Use paper trading to understand the signals
Small Size: Begin with 1% risk per trade
Track Results: Monitor the dashboard statistics
Adjust: Fine-tune momentum settings based on results
🔧 Customization Tips
Color Signals: Enable to see momentum strength
Dashboard Position: Move to preferred screen location
Visual Settings: Adjust colors for your theme
Alerts: Set up for automated notifications
This indicator is ideal for traders who prefer an always-in-market approach with clear entry/exit rules and automated position management. The key to success is choosing the right momentum engine for your market and maintaining disciplined risk management.
RSI MSB | QuantMAC📊 RSI MSB | QuantMAC
🎯 Overview
The RSI MSB (Momentum Shifting Bands) represents a groundbreaking fusion of traditional RSI analysis with advanced momentum dynamics and adaptive volatility bands. This sophisticated indicator combines RSI smoothing , relative momentum calculations , and dynamic standard deviation bands to create a powerful oscillator that automatically adapts to changing market conditions, providing superior signal accuracy across different trading environments.
🔧 Key Features
Hybrid RSI-Momentum Engine : Proprietary combination of smoothed RSI with relative momentum analysis
Dynamic Adaptive Bands : Self-adjusting volatility bands that respond to indicator strength
Dual Trading Modes : Flexible Long/Short or Long/Cash strategies for different risk preferences
Advanced Performance Analytics : Comprehensive metrics including Sharpe, Sortino, and Omega ratios
Smart Visual System : Dynamic color coding with 9 professional color schemes
Precision Backtesting : Date range filtering with detailed historical performance analysis
Real-time Signal Generation : Clear entry/exit signals with customizable threshold sensitivity
Position Sizing Intelligence : Half Kelly criterion for optimal risk management
📈 How The MSB Technology Work
The Momentum Shifting Bands technology is built on a revolutionary approach that combines multiple signal sources into one cohesive system:
RSI Foundation : 💪
Calculate traditional RSI using customizable length and source
Apply exponential smoothing to reduce noise and false signals
Normalize values for consistent performance across different timeframes
Momentum Analysis Engine : ⚡
Compute fast and slow momentum using rate of change calculations
Calculate relative momentum by comparing fast vs slow momentum
Normalize momentum values to 0-100 scale for consistency
Apply smoothing to create stable momentum readings
Dynamic Combination : 🔄
The genius of MSB lies in its weighted combination of RSI and momentum signals. The momentum weight parameter allows traders to adjust the balance between RSI stability and momentum responsiveness, creating a hybrid indicator that captures both trend continuation and reversal signals.
Adaptive Band System : 🎯
Calculate dynamic standard deviation multiplier based on indicator strength
Generate upper and lower bands that expand during high volatility periods
Create normalized oscillator that scales between band boundaries
Provide visual reference for overbought/oversold conditions
⚙️ Comprehensive Parameter Control
RSI Settings : 📊
RSI Length: Controls the period for RSI calculation (default: 21)
Source: Price input selection (close, open, high, low, etc.)
RSI Smoothing: Reduces noise in RSI calculations (default: 20)
Momentum Settings : 🔥
Fast Momentum Length: Short-term momentum period (default: 19)
Slow Momentum Length: Long-term momentum period (default: 21)
Momentum Weight: Balance between RSI and momentum (default: 0.6)
Oscillator Settings : ⚙️
Base Length: Foundation moving average for band calculations (default: 40)
Standard Deviation Length: Period for volatility measurement (default: 53)
SD Multiplier: Base band width adjustment (default: 0.7)
Oscillator Multiplier: Scaling factor for oscillator values (default: 100)
Signal Thresholds : 🎯
Long Threshold: Bullish signal trigger level (default: 93)
Short Threshold: Bearish signal trigger level (default: 53)
🎨 Advanced Visual System
Main Chart Elements : 📈
Dynamic Shifting Bands: Upper and lower bands with intelligent transparency
Adaptive Fill Zone: Color-coded area between bands showing current market state
Basis Line: Moving average foundation displayed as subtle reference points
Smart Bar Coloring: Candles change color based on oscillator state for instant visual feedback
Oscillator Pane : 📊
Normalized MSB Oscillator: Main signal line with dynamic coloring based on market state
Threshold Lines: Horizontal reference lines for entry/exit levels
Zero Line: Central reference for oscillator neutrality
Color State Indication: Line colors change based on bullish/bearish conditions
📊 Professional Performance Metrics
The built-in analytics suite provides institutional-grade performance measurement:
Net Profit % : Total strategy return percentage
Maximum Drawdown % : Worst peak-to-trough decline
Win Rate % : Percentage of profitable trades
Profit Factor : Ratio of gross profits to gross losses
Sharpe Ratio : Risk-adjusted return measurement
Sortino Ratio : Downside-focused risk adjustment
Omega Ratio : Probability-weighted performance ratio
Half Kelly % : Optimal position sizing recommendation
Total Trades : Complete transaction count
🎯 Strategic Trading Applications
Long/Short Mode : ⚡
Maximizes profit potential by capturing both upward and downward price movements. The MSB technology helps identify when momentum is building in either direction, allowing for optimal position switches between long and short positions.
Long/Cash Mode : 🛡️
Conservative approach ideal for retirement accounts or risk-averse traders. The indicator's adaptive nature helps identify the best times to be invested versus sitting in cash, protecting capital during adverse market conditions.
🚀 Unique Advantages
Traditional Indicators vs RSI MSB :
Static vs Dynamic: While most indicators use fixed parameters, MSB bands adapt based on indicator strength
Single Signal vs Multi-Signal: Combines RSI reliability with momentum responsiveness
Lagging vs Balanced: Optimized balance between signal speed and accuracy
Simple vs Intelligent: Advanced momentum analysis provides superior market insight
💡 Professional Setup Guide
For Day Trading (Short-term) : 📱
RSI Length: 14-18
RSI Smoothing: 12-15
Momentum Weight: 0.7-0.8
Thresholds: Long 90, Short 55
For Swing Trading (Medium-term) : 📊
RSI Length: 21-25 (default range)
RSI Smoothing: 18-22
Momentum Weight: 0.5-0.7
Thresholds: Long 93, Short 53 (defaults)
For Position Trading (Long-term) : 📈
RSI Length: 25-30
RSI Smoothing: 25-30
Momentum Weight: 0.4-0.6
Thresholds: Long 95, Short 50
🧠 Advanced Trading Techniques
MSB Divergence Analysis : 🔍
Watch for divergences between price action and MSB readings. When price makes new highs/lows but the oscillator doesn't confirm, it often signals upcoming reversals or momentum shifts.
Band Width Interpretation : 📏
Expanding Bands: Increasing volatility, expect larger price moves
Contracting Bands: Decreasing volatility, prepare for potential breakouts
Band Touches: Price touching outer bands often signals reversal opportunities
Multi-Timeframe Analysis : ⏰
Use MSB on higher timeframes for trend direction and lower timeframes for precise entry timing. The momentum component makes it particularly effective for timing entries within established trends.
⚠️ Important Risk Disclaimers
Critical Risk Factors :
Market Conditions: No indicator performs equally well in all market environments
Backtesting Limitations: Historical performance may not reflect future market behavior
Parameter Sensitivity: Different settings may produce significantly different results
Volatility Risk: Momentum-based indicators can be sensitive to extreme market conditions
Capital Risk: Always use appropriate position sizing and stop-loss protection
📚 Educational Benefits
This indicator provides exceptional learning opportunities for understanding:
Advanced RSI analysis and momentum integration techniques
Adaptive indicator design and dynamic band calculations
The relationship between momentum shifts and price movements
Professional risk management using Kelly Criterion principles
Modern oscillator interpretation and multi-signal analysis
🔍 Market Applications
The RSI MSB works effectively across various markets:
Forex : Excellent for currency pair momentum analysis
Stocks : Individual equity and index trading with momentum confirmation
Commodities : Adaptive to commodity market momentum cycles
Cryptocurrencies : Handles extreme volatility with momentum filtering
Futures : Professional derivatives trading applications
🔧 Technical Innovation
The RSI MSB represents advanced research into multi-signal technical analysis. The proprietary momentum-RSI combination has been optimized for:
Computational Efficiency : Fast calculation even on high-frequency data
Signal Clarity : Clear, actionable trading signals with reduced noise
Market Adaptability : Automatic adjustment to changing momentum conditions
Parameter Flexibility : Wide range of customization options for different trading styles
🔔 Updates and Evolution
The RSI MSB | QuantMAC continues to evolve with regular updates incorporating the latest research in momentum-based technical analysis. The comprehensive parameter set allows for extensive customization and optimization across different market conditions.
Past Performance Disclaimer : Past performance results shown by this indicator are hypothetical and not indicative of future results. Market conditions change continuously, and no trading system or methodology can guarantee profits or prevent losses. Historical backtesting may not reflect actual trading conditions including market liquidity, slippage, and fees that would affect real trading results.
Master The Markets With Multi-Signal Intelligence! 🎯📈
BACAP PRICE STRUCTURE 21 EMA TREND21dma-STRUCTURE
Overview
The 21dma-STRUCTURE indicator is a sophisticated overlay indicator that visualizes price action relative to a triple 21-period exponential moving average structure. Originally developed by BalarezoCapital and enhanced by PrimeTrading, this indicator provides clear visual cues for trend direction and momentum through dynamic bar coloring and EMA structure analysis.
Key Features
Triple EMA Structure
- 21 EMA High: Tracks the exponential moving average of high prices
- 21 EMA Close: Tracks the exponential moving average of closing prices
- 21 EMA Low: Tracks the exponential moving average of low prices
- Dynamic Cloud: Gray fill between high and low EMAs for visual structure reference
Smart Bar Coloring System
- Blue Bars: Price closes above all three EMAs (strong bullish momentum)
- Pink Bars: Daily high falls below the lowest EMA (strong bearish signal)
- Gray Bars: Neutral conditions or transitional phases
- Color Memory: Maintains previous color until new condition is met
Dynamic Center Line
- Trend-Following Color: Green when all EMAs are rising, red when all are falling
- Color Persistence: Maintains trend color during sideways movement
- Visual Clarity: Thicker center line for easy trend identification
Customizable Visual Elements
- Adjustable line thickness for all EMA plots
- Customizable colors for bullish and bearish conditions
- Configurable trend colors for uptrend and downtrend phases
- Optional bar color changes with toggle control
How to Use
Trend Identification
- Rising Green Center Line: All EMAs trending upward (bullish structure)
- Falling Red Center Line: All EMAs trending downward (bearish structure)
- Flat Center Line: Maintains last trend color during consolidation
Momentum Analysis
- Blue Bars: Strong bullish momentum with price above entire EMA structure
- Pink Bars: Strong bearish momentum with high below lowest EMA
- Gray Bars: Neutral or transitional momentum phases
Entry and Exit Signals
- Bullish Setup: Look for blue bars during green center line periods
- Bearish Setup: Look for pink bars during red center line periods
- Exit Consideration: Watch for color changes as potential momentum shifts
Structure Trading
- Support/Resistance: Use EMA cloud as dynamic support and resistance zones
- Breakout Confirmation: Bar color changes can confirm structure breakouts
- Trend Continuation: Color persistence suggests ongoing momentum
Settings
Visual Customization
- Change Bar Color: Toggle to enable/disable bar coloring
- Line Size: Adjust thickness of EMA lines (default: 3)
- Bullish Candle Color: Customize blue bar color
- Bearish Candle Color: Customize pink bar color
Trend Colors
- Uptrend Color: Color for rising EMA center line (default: green)
- Downtrend Color: Color for falling EMA center line (default: red)
- Cloud Color: Fill color between high and low EMAs (default: gray)
Advanced Features
Modified Bar Logic
Unlike traditional EMA systems, this indicator uses refined conditions:
- Bullish signals require close above ALL three EMAs
- Bearish signals require high below the LOWEST EMA
- Enhanced precision reduces false signals compared to single EMA systems
Trend Memory System
- Intelligent color persistence during sideways movement
- Reduces noise from minor EMA fluctuations
- Maintains trend context during consolidation periods
Performance Optimization
- Efficient calculation methods for real-time performance
- Clean visual design that doesn't clutter charts
- Compatible with all timeframes and instruments
Best Practices
Multi-Timeframe Analysis
- Use higher timeframes to identify overall trend direction
- Apply on multiple timeframes for confluence
- Combine with weekly/monthly charts for position trading
Risk Management
- Use bar color changes as early warning signals
- Consider position sizing based on EMA structure strength
- Set stops relative to EMA support/resistance levels
Combination Strategies
- Pair with volume indicators for confirmation
- Use alongside RSI or MACD for momentum confirmation
- Combine with key support/resistance levels
Market Context
- More effective in trending markets than choppy conditions
- Consider overall market environment and sector strength
- Adjust expectations during high volatility periods
Technical Specifications
- Based on 21-period exponential moving averages
- Uses Pine Script v6 for optimal performance
- Overlay indicator that works with any chart type
- Maximum 500 lines for clean performance
Ideal Applications
- Swing trading on daily charts
- Position trading on weekly charts
- Intraday momentum trading (adjust timeframe accordingly)
- Trend following strategies
- Structure-based trading approaches
Disclaimer
This indicator is for educational and informational purposes only. It should not be used as the sole basis for trading decisions. Always combine with other forms of analysis, proper risk management, and consider your individual trading plan and risk tolerance.
Compatible with Pine Script v6 | Works on all timeframes | Optimized for trending markets
21DMA Structure Counter (EMA/SMA Option)21DMA Structure Counter (EMA/SMA Option)
Overview
The 21DMA Structure Counter is an advanced technical indicator that tracks consecutive periods where price action remains above a 21-period moving average structure. This indicator helps traders identify momentum phases and potential trend exhaustion points using statistical analysis.
Key Features
Moving Average Structure
- Configurable MA Type: Choose between EMA (Exponential Moving Average) or SMA (Simple Moving Average)
- 21-Period Default: Optimized for the widely-watched 21-period moving average
- Triple MA Structure: Tracks high, close, and low moving averages for comprehensive analysis
Statistical Analysis
- Cycle Counting: Automatically counts consecutive periods above the MA structure
- Historical Data: Maintains up to 2,500 historical cycles (approximately 10 years of daily data)
- Z-Score Calculation: Provides statistical context using mean and standard deviation
- Multiple Standard Deviation Levels: Displays +1, +2, and +3 standard deviation thresholds
Visual Indicators
Color-Coded Bars:
- Gray: Below 10-year average
- Yellow: Between average and +1 standard deviation
- Orange: Between +1 and +2 standard deviations
- Red: Between +2 and +3 standard deviations
- Fuchsia: Above +3 standard deviations (extreme readings)
Breadth Integration
- Multiple Breadth Options: NDFI, NDTH, NDTW (NASDAQ breadth indicators), or VIX
- Background Shading: Visual alerts when breadth reaches extreme levels
- High/Low Thresholds: Customizable levels for breadth analysis
- Real-time Display: Current breadth value shown in data table
Smart Reset Logic
- High Below Structure Reset: Automatically resets count when daily high falls below the lowest MA
- Flexible Hold Period: Continues counting during temporary weakness as long as structure isn't violated
- Precise Entry/Exit: Strict criteria for starting cycles, flexible for maintaining them
How to Use
Trend Identification
- Rising Counts: Indicate sustained momentum above key moving average structure
- Extreme Readings: Z-scores above +2 or +3 suggest potential trend exhaustion
- Historical Context: Compare current cycles to 10-year statistical averages
Risk Management
- Breadth Confirmation: Use breadth shading to confirm market-wide strength/weakness
- Statistical Extremes: Exercise caution when readings reach +3 standard deviations
- Reset Signals: Pay attention to structure violations for potential trend changes
Multi-Timeframe Application
- Daily Charts: Primary timeframe for swing trading and position management
- Weekly/Monthly: Longer-term trend analysis
- Intraday: Shorter-term momentum assessment (adjust MA period accordingly)
Settings
Moving Average Options
- Type: EMA or SMA selection
- Period: Default 21 (customizable)
- Reset Days: Days below structure required for reset
Visual Customization
- Standard Deviation Lines: Toggle and customize colors for +1, +2, +3 SD
- Breadth Selection: Choose from NDFI, NDTH, NDTW, or VIX
- Threshold Levels: Set custom high/low breadth thresholds
- Table Styling: Customize text colors, background, and font size
Technical Notes
- Data Retention: Maintains 2,500 historical cycles for robust statistical analysis
- Real-time Updates: Calculations update with each new bar
- Breadth Integration: Uses security() function to pull external breadth data
- Performance Optimized: Efficient array management prevents memory issues
Best Practices
1. Combine with Price Action: Use alongside support/resistance and chart patterns
2. Monitor Breadth Divergences: Watch for breadth weakness during strong readings
3. Respect Statistical Extremes: Exercise caution at +2/+3 standard deviation levels
4. Context Matters: Consider overall market environment and sector rotation
5. Risk Management: Use appropriate position sizing, especially at extreme readings
Disclaimer
This indicator is for educational and informational purposes only. It should not be used as the sole basis for trading decisions. Always combine with other forms of analysis and proper risk management techniques.
Compatible with Pine Script v6 | Optimized for daily timeframes | Best used on major indices and liquid stocks
RSI Shifting Band Oscillator | QuantMAC📊 RSI Shifting Band Oscillator | QuantMAC
🎯 Overview
The RSI Shifting Band Oscillator represents a breakthrough in adaptive technical analysis, combining the innovative dual-stage RSI processing with dynamic volatility bands to create an oscillator that automatically adjusts to changing market momentum conditions. This cutting-edge indicator goes beyond traditional static approaches by using smoothed RSI to dynamically shift band width based on momentum transitions, providing superior signal accuracy across different market regimes.
🔧 Key Features
Revolutionary Dual RSI Technology: Proprietary two-stage RSI calculation with exponential smoothing that measures momentum transitions in real-time
Dynamic Adaptive Bands: Self-adjusting volatility bands that expand and contract based on RSI distance from equilibrium
Dual Trading Modes: Flexible Long/Short or Long/Cash strategies for different trading preferences
Advanced Performance Analytics: Comprehensive metrics including Sharpe, Sortino, and Omega ratios
Smart Visual System: Dynamic color coding with 9 professional color schemes
Precision Backtesting: Date range filtering with detailed historical performance analysis
Real-time Signal Generation: Clear entry/exit signals with customizable threshold sensitivity
Position Sizing Intelligence: Half Kelly criterion for optimal risk management
📈 How The Dual RSI Technology Works
The Dual RSI system is the heart of this indicator's innovation. Unlike traditional RSI implementations, this approach analyzes the smoothed momentum transitions between different RSI states, providing early warning signals for momentum regime changes.
RSI Calculation Process:
Calculate traditional RSI using specified length and price source
Apply exponential moving average smoothing to reduce noise
Measure RSI distance from neutral 50 level to determine momentum strength
Use RSI deviation to dynamically adjust standard deviation multipliers
Create adaptive bands that respond to momentum conditions
Generate normalized oscillator values for clear signal interpretation
The genius of this dual RSI approach lies in its ability to detect when markets are transitioning between momentum and consolidation periods before traditional indicators catch up. This provides traders with a significant edge in timing entries and exits.
⚙️ Comprehensive Parameter Control
RSI Settings:
RSI Length: Controls the lookback period for momentum analysis (default: 14)
RSI Smoothing: Reduces noise in RSI calculations using EMA (default: 20)
Source: Price input selection (close, open, high, low, etc.)
Oscillator Settings:
Base Length: Foundation moving average for band calculations (default: 40)
Standard Deviation Length: Period for volatility measurement (default: 26)
SD Multiplier: Base band width adjustment (default: 2.7)
Oscillator Multiplier: Scaling factor for oscillator values (default: 100)
Signal Thresholds:
Long Threshold: Bullish signal trigger level (default: 90)
Short Threshold: Bearish signal trigger level (default: 56)
🎨 Advanced Visual System
Main Chart Elements:
Dynamic Shifting Bands: Upper and lower bands that automatically adjust width based on RSI momentum
Adaptive Fill Zone: Color-coded area between bands showing current market state
Basis Line: Moving average foundation displayed as subtle reference points
Smart Bar Coloring: Candles change color based on oscillator state for instant visual feedback
Oscillator Pane:
Normalized RSI Oscillator: Main signal line centered around zero with dynamic coloring
Threshold Lines: Horizontal reference lines for entry/exit levels
Zero Line: Central reference for oscillator neutrality
Color State Indication: Line colors change based on bullish/bearish conditions
📊 Professional Performance Metrics
The built-in analytics suite provides institutional-grade performance measurement:
Net Profit %: Total strategy return percentage
Maximum Drawdown %: Worst peak-to-trough decline
Win Rate %: Percentage of profitable trades
Profit Factor: Ratio of gross profits to gross losses
Sharpe Ratio: Risk-adjusted return measurement
Sortino Ratio: Downside-focused risk adjustment
Omega Ratio: Probability-weighted performance ratio
Half Kelly %: Optimal position sizing recommendation
Total Trades: Complete transaction count
🎯 Strategic Trading Applications
Long/Short Mode: ⚡
Maximizes profit potential by capturing both upward and downward price movements. The dual RSI technology helps identify when momentum is strengthening or weakening, allowing for optimal position switches between long and short.
Long/Cash Mode: 🛡️
Conservative approach ideal for retirement accounts or risk-averse traders. The indicator's adaptive nature helps identify the best times to be invested versus sitting in cash, protecting capital during adverse market conditions.
🚀 Unique Advantages
Traditional Indicators vs RSI Shifting Bands:
Static vs Dynamic: While most indicators use fixed parameters, RSI bands adapt in real-time
Lagging vs Leading: Dual RSI detects momentum transitions before they fully manifest
One-Size vs Adaptive: The same settings work across different market conditions
Simple vs Intelligent: Advanced momentum analysis provides superior market insight
💡 Professional Setup Guide
For Day Trading (Short-term):
RSI Length: 10-12
RSI Smoothing: 15-18
Base Length: 25-30
Thresholds: Long 85, Short 60
For Swing Trading (Medium-term):
RSI Length: 14-16 (default range)
RSI Smoothing: 20-25
Base Length: 40-50
Thresholds: Long 90, Short 56 (defaults)
For Position Trading (Long-term):
RSI Length: 18-21
RSI Smoothing: 25-30
Base Length: 60-80
Thresholds: Long 92, Short 50
🧠 Advanced Trading Techniques
RSI Divergence Analysis:
Watch for divergences between price action and smoothed RSI readings. When price makes new highs/lows but RSI doesn't confirm, it often signals upcoming reversals.
Band Width Interpretation:
Expanding Bands: Increasing momentum, expect larger price moves
Contracting Bands: Decreasing momentum, prepare for potential breakouts
Band Touches: Price touching outer bands often signals reversal opportunities
Multi-Timeframe Analysis:
Use RSI oscillator on higher timeframes for trend direction and lower timeframes for precise entry timing.
⚠️ Important Risk Disclaimers
Past performance is not indicative of future results. This indicator represents advanced technical analysis but should never be used as the sole basis for trading decisions.
Critical Risk Factors:
Market Conditions: No indicator performs equally well in all market environments
Backtesting Limitations: Historical performance may not reflect future market behavior
Momentum Risk: Adaptive indicators can be sensitive to extreme momentum conditions
Parameter Sensitivity: Different settings may produce significantly different results
Capital Risk: Always use appropriate position sizing and stop-loss protection
📚 Educational Benefits
This indicator provides exceptional learning opportunities for understanding:
Advanced RSI analysis and momentum measurement techniques
Adaptive indicator design and implementation
The relationship between momentum transitions and price movements
Professional risk management using Kelly Criterion principles
Modern oscillator interpretation and signal generation
🔍 Market Applications
The RSI Shifting Band Oscillator works across various markets:
Forex: Excellent for currency pair momentum analysis
Stocks: Individual equity and index trading
Commodities: Adaptive to commodity market momentum cycles
Cryptocurrencies: Handles extreme momentum variations effectively
Futures: Professional derivatives trading applications
🔧 Technical Innovation
The RSI Shifting Band Oscillator represents years of research into adaptive technical analysis. The proprietary dual RSI calculation method has been optimized for:
Computational Efficiency: Fast calculation even on high-frequency data
Noise Reduction: Advanced smoothing without excessive lag
Market Adaptability: Automatic adjustment to changing conditions
Signal Clarity: Clear, actionable trading signals
🔔 Updates and Evolution
The RSI Shifting Band Oscillator | QuantMAC continues to evolve with regular updates incorporating the latest research in adaptive technical analysis. The code is thoroughly documented for transparency and educational purposes.
Trading Notice: Financial markets involve substantial risk of loss. The RSI Shifting Band Oscillator is a sophisticated technical analysis tool designed to assist in trading decisions but cannot guarantee profitable outcomes.
---
Master The Markets With Adaptive Intelligence! 🎯📈